#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pymysql
from settings import mysql_settings
settings=mysql_settings.mysqlSettings()
settings=settings.mysql_conf
MYSQL_HOST=settings['MYSQL_HOST']
MYSQL_PORT=settings['MYSQL_PORT']
MYSQL_DB=settings['MYSQL_DB']
MYSQL_USER=settings['MYSQL_USER']
MYSQL_PASSWD=settings['MYSQL_PASSWD']
MYSQL_CHARTSET=settings['MYSQL_CHARTSET']

db = pymysql.connect(
host=MYSQL_HOST,
port=MYSQL_PORT,
database=MYSQL_DB,
user=MYSQL_USER,
password=MYSQL_PASSWD,
charset=MYSQL_CHARTSET)
cursor = db.cursor()
import time

if __name__=='__main__':
    start_date_str = str(time.strftime('%Y-%m-%d_%H', time.localtime()))
    print(start_date_str)